package com.daniel.design.pattern.strategy;

/**
 * @ClassName SalesMan
 * @Description 销售人员（环境类橘色）
 * @Author Daniel
 * @Version V1.0.0
 */
public class SalesMan {

    private IStrategy mIStrategy;

    public SalesMan(IStrategy IStrategy) {
        mIStrategy = IStrategy;
    }

    public void setIStrategy(IStrategy IStrategy) {
        mIStrategy = IStrategy;
    }

    public void showInfo() {
        mIStrategy.show();
    }
}
